package org.example.wikwok.common;

import java.io.File;

//包含一些通用的工具方法，如日期处理、文件处理等。
public class UtilityClasses {

    private static final String DIR = "uploads";
    //用户头像上传路径
    private static final String AVATAR_DIR = DIR + File.separator + "avatar";
    //获取当前工作的目录
    private static final String CURRENT_DIR = System.getProperty("user.dir");
    private static final String UPLOAD_DIR = CURRENT_DIR + File.separator + DIR + File.separator;

    private static final String AVATAR_UPLOAD_DIR = CURRENT_DIR + File.separator + AVATAR_DIR + File.separator;
    //获取头像上传路径
    public static String getAvatarDir(){
        return AVATAR_DIR;
    }
    public static String getDir(){
        return DIR;
    }
    public static String getUploadDir(){
        return UPLOAD_DIR;
    }
    public static String getAvatarUploadDir(){
        return AVATAR_UPLOAD_DIR;
    }
}
